package com.scores.mapper;

import com.scores.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {
    List<Teacher> getAllTeachers(@Param("t") Teacher teacher);

    List<Teacher> getAllTeachersByPage(@Param("t") Teacher teacher, @Param("page") Integer page, @Param("pageSize") Integer pageSize);

    int addTeacher(List<Teacher> teacher);

    int updateTeacher(Teacher teacher);

    int deleteTeacher(List<Integer> ids);

    int updatePassword(@Param("teacherId") int teacherId, @Param("newPassword") String newPassword);


}
